package smoothcraft.Util.tpa;

import java.util.HashMap;

public class API extends smoothcraft.API{
	private final static HashMap<String,String> map = new HashMap<String,String>();
	public void mapJoin(String player,String aroms) {
		map.put(player, aroms);
	}
	public void removeMap(String player) {
		map.remove(player);
	}
	public String getAroms(String aroms) {
		if(map.containsValue(aroms)) {
			for(String x:map.keySet()) {
				if(aroms.equals(map.get(x))) {
					return x;
				}
			}
		}
		return "0";
	}
	public boolean containsPlayer(String key) {
		return map.containsKey(key);
	}
	public boolean containsAroms(String vaule) {
		return map.containsValue(vaule);
	}
}
